package com.sad.jetpack.v1.datamodel.api.extension.client.socket.ipc;

import java.io.InputStream;
import java.net.Socket;

public interface IPCChatMessenger {

    byte[] syncSend(byte[] data, int cacheSize,boolean read) throws Exception;

    byte[] syncSend(InputStream inputStream, int cacheSize,int futureSize,boolean read) throws Exception;

    byte[] syncSend(InputStream outSideInputStream, int cacheSize, int futureSize, boolean read, IPCStreamUtils.InputStreamReadingListener proxyListener) throws Exception;

    byte[] syncReceive(int cacheSize) throws Exception;

    void syncReceive(int cacheSize, IPCStreamUtils.InputStreamReadingListener readingListener) throws Exception;

    int nextDataFutureSize() throws Exception;

}
